package com.example.demo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.demo.dao.SysPermissionDao;
import com.example.demo.entity.SysPermission;
import com.example.demo.service.SysPermissionService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 权限表(SysPermission)表服务实现类
 *
 * @author makejava
 * @since 2020-07-01 11:33:08
 */

@Service("sysPermissionService")
public class SysPermissionServiceImpl extends ServiceImpl<SysPermissionDao, SysPermission> implements SysPermissionService {

    @Resource
    SysPermissionDao sysPermissionDao;
    @Override
    public List<SysPermission> getPermissionByUid(Integer uid) {
        return  sysPermissionDao.selectListByUser(uid);
    }
}